/*
 * @Date: 2021-11-23 23:18:44
 * @LastEditors: xiaolan
 * @LastEditTime: 2021-11-24 14:56:52
 * @FilePath: \pms\web\document_manage\statistics.js
 */
var user_role = sessionStorage.getItem('user_role')
// 显示界面
function showPage() {
  let user_manage = document.getElementById('user_manage')
  let project_manage = document.getElementById('project_manage')
  let money = document.getElementById('money')
  let contract = document.getElementById('contract')
  if (user_role == '组员') {
    user_manage.style.display = 'none'
    project_manage.style.display = 'none'
    money.style.display = 'none'
    contract.style.display = 'none'
  }
}
showPage()
function showName() {
  document.querySelector('#yourName').innerHTML = sessionStorage.getItem('user_name')
}
showName()